package com.hyper_yang._04_jvm.chap05;

import java.util.ArrayList;
import java.util.List;

/**
 * -Xss1m
 * -Xms10m -Xmx10m -Xlog:gc*
 */
public class OOM_G1Demo {
    public static String baseString = "www.sakiko.com";

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();

        for (int i = 1; i <= 10000; i++) {
            String tmpString = baseString + baseString;
            baseString = tmpString;
            list.add(tmpString);
        }
    }
}
